﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="timkiemsinhvien.aspx.cs" Inherits="Admin_timkiemsinhvien" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="mainy">
        <!-- Page title -->
        <div class="page-title" style="display: none">
            <h2>
                <i class="icon-list color"></i>Sinh viên <small>Tìm kiếm</small></h2>
            <hr>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="awidget">
                    <div class="awidget-head">
                        <h3>
                            Tìm kiếm sinh viên</h3>
                    </div>
                    <div class="awidget-body">
                        <div class="form-horizontal" role="form">
                            <div class="form-group">
                                <label class="lable_c">
                                    Lớp</label>
                                <div class="control_c">
                                    <asp:TextBox ID="txt_malop" runat="server" placeholder="Mã lớp" class="form-control"></asp:TextBox>
                                </div>
                                <label class="lable_c">
                                    Mã sinh viên</label>
                                <div class="control_c">
                                    <asp:TextBox ID="txt_masinhvien" runat="server" placeholder="Mã sinh viên" class="form-control"></asp:TextBox>
                                </div>
                                <label class="lable_c">
                                    Tên sinh viên</label>
                                <div class="control_c">
                                    <asp:TextBox ID="txt_t" runat="server" placeholder="Tên sinh viên" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="form-group div_center">
                                <asp:Button ID="btn_luu" runat="server" Text="Tìm" UseSubmitBehavior="true" class="btn btn-default"
                                    OnClick="btn_luu_Click" />
                            </div>
                        </div>
                        <br />
                        <asp:GridView ID="gr_sv" CssClass="table table-hover table-bordered" runat="server"
                            AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField HeaderText="STT" HeaderStyle-CssClass="lb_stt">
                                    <ItemTemplate>
                                        <%# Eval("RowNumber") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mã sinh viên" HeaderStyle-CssClass="lb_masv">
                                    <ItemTemplate>
                                        <%# Eval("masinhvien") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Họ đệm">
                                    <ItemTemplate>
                                        <%# Eval("ho") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tên" HeaderStyle-CssClass="lb_t">
                                    <ItemTemplate>
                                        <%# Eval("ten") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Lớp">
                                    <ItemTemplate>
                                        <%# Eval("malop") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ngày sinh" HeaderStyle-CssClass="lb_ns">
                                    <ItemTemplate>
                                        <%# Eval("ngaysinh") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Giới tính">
                                    <ItemTemplate>
                                        <%# Eval("ngaysinh")=="1"?"Nam":"Nữ" %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="CMTND">
                                    <ItemTemplate>
                                        <%# Eval("cmtnd") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Điện thoại">
                                    <ItemTemplate>
                                        <%# Eval("dienthoai") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Email">
                                    <ItemTemplate>
                                        <%# Eval("email") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Chức năng" HeaderStyle-Width="100" ItemStyle-CssClass="chucnang">
                                    <ItemTemplate>
                                    <asp:LinkButton ID="btn_mail" runat="server" CommandName="mail" CommandArgument='<%# Eval("masinhvien") %>'
                                            class="btn btn-xs btn-danger" ToolTip="Xem thông tin chi tiết"><i class="icon-table"></i></asp:LinkButton>
                                      <a href="/admin/xemdiem.aspx?masv=<%# Eval("masinhvien")  %>" title="Xem điểm" class="btn btn-xs btn-danger"><i class="icon-comment"></i></a>                                      
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <ul class="pagination pull-right">
                            <asp:Repeater ID="rptPager" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                        <div class="clearfix">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
